package com.maiji.cloud.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.maiji.cloud.entities.shopingmall.DownPriceGoodsManage;

@Mapper
public interface DownPriceManageMapper extends BaseMapper<DownPriceGoodsManage> {
	/**
	 * 根据当前时间和商品id获取
	 * @param goodId
	 * @return
	 */
	DownPriceGoodsManage selectOneByGoodId(@Param("goodId")String goodId,@Param("nowTime")Date nowTime);

	List<DownPriceGoodsManage> selectListByTime(@Param("nowTime")Date nowTime,@Param("start")Integer start,@Param("limit")Integer limit);

}
